package com.hc.bean;

import java.util.Date;
import java.util.List;

public class CategoryBean {


    @Override
    public String toString() {
        return "CategoryBean{" +
                "category_id=" + category_id +
                ", shop_id=" + shop_id +
                ", parent_id=" + parent_id +
                ", category_name='" + category_name + '\'' +
                ", icon='" + icon + '\'' +
                ", pic='" + pic + '\'' +
                ", seq=" + seq +
                ", status=" + status +
                ", rec_time=" + rec_time +
                ", grade=" + grade +
                ", update_time=" + update_time +
                '}';
    }

    private Integer category_id;//	bigint(20) unsigned
    private Integer  shop_id;//	bigint(20)
    private Integer parent_id;//	bigint(20) unsigned
    private String category_name;//	varchar(50)
    private String icon;//	varchar(255)
    private String pic;//	varchar(300)
    private Integer seq;//	int(5)
    private Integer status;//	int(1)
    private Date rec_time = new Date();//	datetime
    private Integer grade;//	int(2)
    private Date update_time;//	datetime


    private List<CategoryBean> children;//用于存储某个类别下的子类别

    public List<CategoryBean> getChildren() {
        return children;
    }

    public void setChildren(List<CategoryBean> children) {
        this.children = children;
    }

    public Integer getCategory_id() {
        return category_id;
    }

    public void setCategory_id(Integer category_id) {
        this.category_id = category_id;
    }

    public Integer getShop_id() {
        return shop_id;
    }

    public void setShop_id(Integer shop_id) {
        this.shop_id = shop_id;
    }

    public Integer getParent_id() {
        return parent_id;
    }

    public void setParent_id(Integer parent_id) {
        this.parent_id = parent_id;
    }

    public String getCategory_name() {
        return category_name;
    }

    public void setCategory_name(String category_name) {
        this.category_name = category_name;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public String getPic() {
        return pic;
    }

    public void setPic(String pic) {
        this.pic = pic;
    }

    public Integer getSeq() {
        return seq;
    }

    public void setSeq(Integer seq) {
        this.seq = seq;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getRec_time() {
        return rec_time;
    }

    public void setRec_time(Date rec_time) {
        this.rec_time = rec_time;
    }

    public Integer getGrade() {
        return grade;
    }

    public void setGrade(Integer grade) {
        this.grade = grade;
    }

    public Date getUpdate_time() {
        return update_time;
    }

    public void setUpdate_time(Date update_time) {
        this.update_time = update_time;
    }
}
